package 设计模式.职责链模式;

public abstract class Approver {
    Approver approver; //下一个处理者
    private String name; //名字

    public Approver(String name) {
        this.name = name;
    }

    public Approver getApprover() {
        return approver;
    }

    public void setApprover(Approver approver) {
        this.approver = approver;
    }

    //处理甫批请求的方法，得到一个请求，处理足子类完成，因此该方法做成抽象
    abstract void processRequest(PurchaseRequest request);

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
